#ifndef COIN_H
#define COIN_H

#include <QPushButton>
#include <QTimer>

class Coin : public QPushButton
{
    Q_OBJECT
public:
//    explicit Coin(QWidget *parent = nullptr);
    Coin(QString Img);
    void changeCoin(void);
    void mousePressEvent(QMouseEvent*e);

    bool is_win;
    int m_x;
    int m_y;
    bool m_flag;
    int min=1;
    int max=8;
    QTimer* timerturn;

signals:

};

#endif // COIN_H
